import "package:ct_pa_majordomo/pages/common/wechat_share/index.dart";
import "package:ct_pa_majordomo/pages/device/widgets/associate_room/index.dart";
import "package:ct_pa_majordomo/router/keys.dart";
import "package:flutter/material.dart";

class CommonRoutes {
  static Map<String, WidgetBuilder> getRoutes(BuildContext context) {
    return {
      /// 微信分享 密码
      Keys.COMMON_WECHAT_SHARE: (context, {arguments}) => const WechatShare(),
      /// 设备绑定房间
      Keys.COMMON_DEVICE_BIND_ROOM: (context, { arguments }) => AssociatedRoom(deviceId: arguments["deviceId"], roomId: arguments["roomId"], deviceType: arguments["deviceType"]),
    };
  }
}